<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.lsms.dao.impl.*" %>
<%@ page import="org.lsms.bean.User" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>PC Member Confirmation Page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="LSMS,ICSEE,CHAIR">
	
	<link rel="stylesheet" type="text/css" href="../css/author_layout.css">
	<link rel="stylesheet" type="text/css" href="../css/hyper_link_style.css">

  </head>
  
  <body>
	<div id="container">
		<div id="header" class="logo_image"></div>
		<div class="nav"></div>
		<div id="author_menu" class="border">
			<table border="0" width="100%"  >
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../index.jsp">Home</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="">View All Papers/Decision</a></td>
				</tr>
				<tr>
				<%
					DaoImpl impl_set = new DaoImpl();
					HashMap<String,Integer> hm_set = impl_set.get_site_setting();
					int member_invite = hm_set.get("member_invite");
					if(member_invite==1){
				 %>
					<td  bgcolor="#CCCCCC"><a href="invite_member.jsp">Invite PC Member</a></td>
				<%
					}else{
				 %>
				 	<td  bgcolor="#CCCCCC"><a href="../error/invite_member_forbidden.jsp">Invite PC Member</a></td>	
				<%
					}
				 %>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="member_conf.jsp">Pcmember Confirmation</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="paper_assign.jsp">Paper Assign</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="assign_index.jsp">Assign Papers' Indexes</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_info.jsp">Modify Information</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../logout">Log Out</a></td>
				</tr>
			</table>
		</div>
		
		<div id="content" class="bg_color border" style="height:320px">
			<br>
			<b>PC Member Confirmation</b>
			<br>
			<table align="center" width="700px" border="0" style="text-align:center">
			<tr>
				<th>ID</th>
				<th>Login Name</th>
				<th>Email</th>
				<th>Status</th>
			</tr>
			<%
				DaoImpl impl = new DaoImpl();
			 	HashMap<Integer,User> hm = new HashMap<Integer,User>();
			 	hm = impl.select_member_conf();
			 	Set<Integer> set = hm.keySet();
			 	Iterator it = set.iterator();
			 	while(it.hasNext()){
			 		Integer i = (Integer)it.next();
			 %>
			 <tr>
			 	<td>
			 	<%
			 		out.print(i);
			 	 %>
			 	</td>
			 	<td>
			 	<%
			 		out.print(((User)hm.get(i)).getLoginname());
			 	 %>
			 	</td>
			 	<td>
			 	<%
			 		out.print(((User)hm.get(i)).getEmail());
			 	 %>
			 	</td>
			 	<td>
			 	<%
			 		int login_times = (((User)hm.get(i))).getLogintimes();
			 		if(login_times==0){
			 			out.print("<font color=\"red\">Not Accept</font>");
			 		}else{
			 			out.print("<font color=\"green\">Accetp</font>");
			 		}		
			 	 %>
			 	</td>
			 </tr>
			 <%
			 }
			  %>	
			</table>
		</div>
		
		<div class="nav"></div>
			
		<div id="footer" class="footer_color border">
			<p align="center"><b>&copy;2010 LSMS-All Rights Reserved.</b></p>
			<p align="center"> <b>Powered by Shu.</b></p>
		</div>
	</div>
  </body>
</html>
